const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function (app) {
  app.use(
    '/hero',
    createProxyMiddleware({
      target: 'http://localhost:3000',
      changeOrigin: true
    }));
  app.use(
    '/posi',
    createProxyMiddleware({
      target: 'http://localhost:3000',
      changeOrigin: true
    }));
    app.use(
      '/users',
      createProxyMiddleware({
        target: 'http://localhost:3000',
        changeOrigin: true
      }))
};
